package com.study.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息传递对象：springCloud Stream + kafka
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudyMessage {

    private Integer id;
    private String projectName;
    private String org;
    private String author;
    private String version;

    public static StudyMessage defaultMessage(){
        return new StudyMessage(
                1,
                "ecommerce-stream-client",
                "study.com",
                "study",
                "1.0"
        );
    }
}
